<!-- 动态资讯 -->
<template>
	<view>
		<home :clickColorIndex="3"></home>
		<view class="real-time-info">
			<image class="real-timeImg" :src="images[0].image" mode="aspectFill"></image>
		</view>
		<newsList></newsList>
		<guarantee></guarantee>
		<footing></footing>
		<menu-tool></menu-tool>
	</view>
</template>

<script>
	import {
		cover
	} from '../../utils/http_data.js';
	export default {
		name: "dynamic",
		data() {
			return {
				images:[],// 封面图
			}
		},
		mounted() {
			this.coverFun();
		},
		methods: {
			// 获取新闻数据
			coverFun() {
				cover().then((data) => {
					console.log('封面：：：',data.data);
					this.images = data.data
				})
			},
		},
	}
</script>

<style scoped>
	.real-time-info {
		width: 100%;
		height: 500px;
	}

	.real-timeImg {
		width: 100%;
		height: 100%;
	}
</style>